package top.huntwolf.admin.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.huntwolf.admin.pojo.BookReserve;
import top.huntwolf.admin.pojo.storage.BookStorage;

import java.util.List;

@Mapper
@Repository
public interface BookStorageDao {

    int insert(List<BookStorage> bookStorages);

    int replaceStorage(List<BookStorage> bookStorages);

    BookStorage selectRepeatStorage(BookStorage bookStorage);

    BookStorage select(int id);

    List<BookStorage> selectByIsbn(String isbn);

    int update(BookStorage storages);

    int delete(Integer id);

    int reduceStorage( BookStorage bookStorage);

    int increaseStorage(BookStorage bookStorage);
}
